<html> 
    <head> 
        <title>BIServer Groovy Console</title> 
 
<!--        <script src="js/codemirror.js" type="text/javascript"></script> -->
<!--        <script src="js/mirrorframe.js" type="text/javascript"></script> -->
<!--        <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script> -->
<!--        <script src="js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script> -->
<!--        -->
<!--        <link rel="stylesheet" type="text/css" href="css/redmond/jquery-ui-1.7.1.custom.css"/> -->
<!--        <link rel="stylesheet" type="text/css" href="css/main.css"/> -->
<!--<script src="js/main.js" type="text/javascript"></script>     -->
        
<link rel="stylesheet" href="css/blueprint/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="css/blueprint/print.css" type="text/css" media="print">	
<!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
    </head>
    
    <body>
    
<div id="wrapper">
	<div id="header">Header</div>
	<div id="left">Left</div>
	<div id="right">Right</div>
	<div id="footer">Footer</div>
</div>

</body>


    <body> 
        <div id="loadingDiv"> 
            <img src="images/ajax-spinner-blue.gif"> 
        </div>        
 
        <h1><a href="/">BIServer Groovy web console</a></h1> 
 
        <form id="publishform" action="/publish.groovy" method="POST"> 
            <div id="textarea-container" class="border"> 
                <textarea id="script" name="script" cols="140" rows="40"></textarea> 
            </div> 

			<div id="variables">
				<ul> 
					<li><a href="#tabs-stacktrace">session</a></li> 
				</ul> 
			</div>
 
            <div id="button-bar"> 
                <input id="title" name="title" type="hidden" value=""> 
                <input id="author" name="author" type="hidden" value=""> 
                <input id="tags" name="tags" type="hidden" value=""> 
                <div id="actionsBreadcrumb"> 
                    <span class="actionsBreadcrumbHead">Actions &nbsp;&#x27A4;</span> 
                    <span class="actionsBreadcrumbChild" id="executeButton"><a href="javascript:void(0)">Execute script</a></span> 
                    <span class="actionsBreadcrumbChild" id="newScriptButton"><a href="/">New script</a></span> 
                    <span class="actionsBreadcrumbChild" id="publishButton"><a href="javascript:void(0)">Publish script</a></span> 
                    <span class="actionsBreadcrumbLastChild"><a href="/scripts">View recent scripts</a></span> 
                </div> 
            </div> 
        </form> 
 
        <div id="tabs"> 
            <ul> 
            	<li><a href="#tabs-result">Result</a></li> 
            	<li><a href="#tabs-output">Output</a></li> 
            	<li><a href="#tabs-stacktrace">Stacktrace</a></li> 
            </ul> 
            
            <div id="tabs-result"> 
                <pre id="result" class="border hidden"></pre> 
            </div> 
        
            <div id="tabs-output"> 
                <pre id="output" class="border hidden"></pre> 
            </div> 
        
            <div id="tabs-stacktrace"> 
                <pre id="stacktrace" class="border hidden"></pre> 
            </div> 
        </div> 
 
        <div id="about"></div> 
 
        <script language="javascript"> 
        	var editor = CodeMirror.fromTextArea('script', {
                height: "300px",
                parserfile: ["tokenizejavascript.js", "parsejavascript.js"],
                stylesheet: "css/jscolors.css",
                path: "js/",
                continuousScanning: 500,
                lineNumbers: true,
                textWrapping: false,
                tabMode: "spaces",
                submitFunction: function() {
                    jQuery("#executeButton").click();
                }
            });
 
            var scriptId = parseInt(window.location.href.substring(window.location.href.lastIndexOf('/') + 1));
            if (!isNaN(scriptId)) {
                jQuery("#script").load("/loadscript.groovy?id=" + scriptId, function(text) {
                    editor.setCode(text);
                });
            }
        </script> 
    </body> 
</html> 
